<template>
  <ScalablePage>
  <!-- 次氯酸钠  clsn -->
  <div class="left">

    <h2><img src="../assets/psj/gy.png" style="width:100%" /></h2>
    <div class="psj-p psj-txt">
    <p>
      加药间主要是用于向工艺系统投加所需的化学药剂。加药间药剂有聚丙烯酰胺(PAM)固体颗粒、液体聚合氯化铝(PAC)、高锰酸钾(KMnO4)三种药剂。加药间设计规模按20.0万m3/d。PAC共前、后两个加药流程，其中前加药点共设3处，分别位于高效絮凝沉淀池的3座反应池处，后加药共设2处，分别位于高效絮凝沉淀池2根DN1200出水管处。PAM共设6个投加点，其中3个位于高效絮凝沉淀池的絮凝池中，另外3个设有污泥泵的回流管中。
    </p></div>

    <h1><img src="../assets/psj/jcsj.png" style="width:100%;margin-top:6px" /></h1>
    <h2><img src="../assets/psj/jyjt2.png" style="margin-top: 6px" /></h2>
    <div class="psj-con">
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">
            {{ psj.yi }} <sub><span class="pjs-sub">m</span> </sub>
          </div>
          <p class="psj-p">1#储液池液位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">
            {{ psj.er }} <sub><span class="pjs-sub">m</span> </sub>
          </div>
          <p class="psj-p">2#储液池液位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.a }} <span class="pjs-sub">L/h</span></div>
          <p class="psj-p">前加氯A池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.b }} <span class="pjs-sub">L/h</span></div>
          <p class="psj-p">前加氯B池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.c }} <span class="pjs-sub">L/h</span></div>
          <p class="psj-p">前加氯c池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.dong }} <span class="pjs-sub">L/h</span></div>
          <p class="psj-p">后加氯东侧算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.xi }} <span class="pjs-sub">L/h</span></div>
          <p class="psj-p">后加氯西侧算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">1#储液池液位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">2#储液池液位</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">前加氯A池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">前加氯B池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">前加氯C池计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">后加氯东侧计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">后加氯西侧计算投加量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">次钠吨水药耗1/t</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">次钠单耗mg/L</p>
        </div>
      </div>
    </div>
   

    <div class="pjs-item" style="margin-top: 20px">
      <div class="psj-pic"></div>
      <div class="psj-pic"></div>
    </div>
  </div>
</ScalablePage>
</template>
<script setup lang="ts">
  import ScalablePage from "@/components/ScalablePage.vue"; // 引入组件自适应
import { ref, onMounted, reactive, toRefs } from "vue";
import { waterApi } from "@/utils/shuiwu/api";

const state = reactive({
  psj: {
    yi: 0,
    er: 0,
    a: 0,
    b: 0,
    c: 0,
    dong: 0,
    xi: 0,
  },
});

let { psj } = toRefs(state);

onMounted(() => {
  getPsj(638);
});

function getPsj(id: number) {
  waterApi(id).then((res) => {
    let arr = res.rows as any;
    for (let i = 0; i < arr.length; i++) {
      if (arr[i].modelId == 4923) {
        state.psj.yi = Number(arr[i].value);
      }
      if (arr[i].modelId == 4924) {
        state.psj.er = Number(arr[i].value);
      }
      if (arr[i].modelId == 4918) {
        state.psj.a = Number(arr[i].value);
      }
      if (arr[i].modelId == 4919) {
        state.psj.b = Number(arr[i].value);
      }
      if (arr[i].modelId == 4920) {
        state.psj.c = Number(arr[i].value);
      }
      if (arr[i].modelId == 4921) {
        state.psj.dong = Number(arr[i].value);
      }
      if (arr[i].modelId == 4922) {
        state.psj.xi = Number(arr[i].value);
      }
    }
  });
}
</script>
<style scoped>
.pjs-item{
  margin-bottom: 12px;
}
</style>
